<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Header Dirs (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Header Dirs (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Header Dirs (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html" rel="up" title="Top">
<link href="Type-Information.html" rel="next" title="Type Information">
<link href="Collect2.html" rel="prev" title="Collect2">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="chapter-level-extent" id="Header-Dirs">
<div class="nav-panel">
<p>
Next: <a href="Type-Information.html" accesskey="n" rel="next">Memory Management and Type Information</a>, Previous: <a href="Collect2.html" accesskey="p" rel="prev"><code class="code">collect2</code></a>, Up: <a href="index.html" accesskey="u" rel="up">Introduction</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h2 class="chapter" id="Standard-Header-File-Directories"><span>22 Standard Header File Directories<a class="copiable-link" href="#Standard-Header-File-Directories"> &para;</a></span></h2>

<p><code class="code">GCC_INCLUDE_DIR</code> means the same thing for native and cross.  It is
where GCC stores its private include files, and also where GCC
stores the fixed include files.  A cross compiled GCC runs
<code class="code">fixincludes</code> on the header files in <samp class="file">$(tooldir)/include</samp>.
(If the cross compilation header files need to be fixed, they must be
installed before GCC is built.  If the cross compilation header files
are already suitable for GCC, nothing special need be done).
</p>
<p><code class="code">GPLUSPLUS_INCLUDE_DIR</code> means the same thing for native and cross.  It
is where <code class="command">g++</code> looks first for header files.  The C++ library
installs only target independent header files in that directory.
</p>
<p><code class="code">LOCAL_INCLUDE_DIR</code> is used only by native compilers.  GCC
doesn&rsquo;t install anything there.  It is normally
<samp class="file">/usr/local/include</samp>.  This is where local additions to a packaged
system should place header files.
</p>
<p><code class="code">CROSS_INCLUDE_DIR</code> is used only by cross compilers.  GCC
doesn&rsquo;t install anything there.
</p>
<p><code class="code">TOOL_INCLUDE_DIR</code> is used for both native and cross compilers.  It
is the place for other packages to install header files that GCC will
use.  For a cross-compiler, this is the equivalent of
<samp class="file">/usr/include</samp>.  When you build a cross-compiler,
<code class="code">fixincludes</code> processes any header files in this directory.
</p>
</div>



</body>
</html>
